Optimal. Leaf size=116 \[ -\frac {a+b \text {ArcSin}(c x)}{d x}-\frac {2 i c (a+b \text {ArcSin}(c x)) \text {ArcTan}\left (e^{i \text {ArcSin}(c x)}\right )}{d}-\frac {b c \tanh ^{-1}\left (\sqrt {1-c^2 x^2}\right )}{d}+\frac {i b c \text {PolyLog}\left (2,-i e^{i \text {ArcSin}(c x)}\right )}{d}-\frac {i b c \text {PolyLog}\left (2,i e^{i \text {ArcSin}(c x)}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {4789, 4749,
4266, 2317, 2438, 272, 65, 214} \begin {gather*} -\frac {2 i c \text {ArcTan}\left (e^{i \text {ArcSin}(c x)}\right ) (a+b \text {ArcSin}(c x))}{d}-\frac {a+b \text {ArcSin}(c x)}{d x}+\frac {i b c \text {Li}_2\left (-i e^{i \text {ArcSin}(c x)}\right )}{d}-\frac {i b c \text {Li}_2\left (i e^{i \text {ArcSin}(c x)}\right )}{d}-\frac {b c \tanh ^{-1}\left (\sqrt {1-c^2 x^2}\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 214
Rule 272
Rule 2317
Rule 2438
Rule 4266
Rule 4749
Rule 4789
Rubi steps
\begin {align*} \int \frac {a+b \sin ^{-1}(c x)}{x^2 \left (d-c^2 d x^2\right )} \, dx &=-\frac {a+b \sin ^{-1}(c x)}{d x}+c^2 \int \frac {a+b \sin ^{-1}(c x)}{d-c^2 d x^2} \, dx+\frac {(b c) \int \frac {1}{x \sqrt {1-c^2 x^2}} \, dx}{d}\\ &=-\frac {a+b \sin ^{-1}(c x)}{d x}+\frac {c \text {Subst}\left (\int (a+b x) \sec (x) \, dx,x,\sin ^{-1}(c x)\right )}{d}+\frac {(b c) \text {Subst}\left (\int \frac {1}{x \sqrt {1-c^2 x}} \, dx,x,x^2\right )}{2 d}\\ &=-\frac {a+b \sin ^{-1}(c x)}{d x}-\frac {2 i c \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{d}-\frac {b \text {Subst}\left (\int \frac {1}{\frac {1}{c^2}-\frac {x^2}{c^2}} \, dx,x,\sqrt {1-c^2 x^2}\right )}{c d}-\frac {(b c) \text {Subst}\left (\int \log \left (1-i e^{i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{d}+\frac {(b c) \text {Subst}\left (\int \log \left (1+i e^{i x}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{d}\\ &=-\frac {a+b \sin ^{-1}(c x)}{d x}-\frac {2 i c \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{d}-\frac {b c \tanh ^{-1}\left (\sqrt {1-c^2 x^2}\right )}{d}+\frac {(i b c) \text {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{d}-\frac {(i b c) \text {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{d}\\ &=-\frac {a+b \sin ^{-1}(c x)}{d x}-\frac {2 i c \left (a+b \sin ^{-1}(c x)\right ) \tan ^{-1}\left (e^{i \sin ^{-1}(c x)}\right )}{d}-\frac {b c \tanh ^{-1}\left (\sqrt {1-c^2 x^2}\right )}{d}+\frac {i b c \text {Li}_2\left (-i e^{i \sin ^{-1}(c x)}\right )}{d}-\frac {i b c \text {Li}_2\left (i e^{i \sin ^{-1}(c x)}\right )}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(259\) vs. \(2(116)=232\).
time = 0.24, size = 259, normalized size = 2.23 \begin {gather*} -\frac {2 a+2 b \text {ArcSin}(c x)+i b c \pi x \text {ArcSin}(c x)+2 b c x \tanh ^{-1}\left (\sqrt {1-c^2 x^2}\right )-b c \pi x \log \left (1-i e^{i \text {ArcSin}(c x)}\right )-2 b c x \text {ArcSin}(c x) \log \left (1-i e^{i \text {ArcSin}(c x)}\right )-b c \pi x \log \left (1+i e^{i \text {ArcSin}(c x)}\right )+2 b c x \text {ArcSin}(c x) \log \left (1+i e^{i \text {ArcSin}(c x)}\right )+a c x \log (1-c x)-a c x \log (1+c x)+b c \pi x \log \left (-\cos \left (\frac {1}{4} (\pi +2 \text {ArcSin}(c x))\right )\right )+b c \pi x \log \left (\sin \left (\frac {1}{4} (\pi +2 \text {ArcSin}(c x))\right )\right )-2 i b c x \text {PolyLog}\left (2,-i e^{i \text {ArcSin}(c x)}\right )+2 i b c x \text {PolyLog}\left (2,i e^{i \text {ArcSin}(c x)}\right )}{2 d x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 236, normalized size = 2.03
method | result | size |
derivativedivides | \(c \left (-\frac {a}{d c x}+\frac {a \ln \left (c x +1\right )}{2 d}-\frac {a \ln \left (c x -1\right )}{2 d}-\frac {b \arcsin \left (c x \right )}{d c x}-\frac {b \arcsin \left (c x \right ) \ln \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{d}+\frac {b \arcsin \left (c x \right ) \ln \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{d}+\frac {b \ln \left (i c x +\sqrt {-c^{2} x^{2}+1}-1\right )}{d}-\frac {b \ln \left (1+i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}+\frac {i b \dilog \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{d}-\frac {i b \dilog \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{d}\right )\) | \(236\) |
default | \(c \left (-\frac {a}{d c x}+\frac {a \ln \left (c x +1\right )}{2 d}-\frac {a \ln \left (c x -1\right )}{2 d}-\frac {b \arcsin \left (c x \right )}{d c x}-\frac {b \arcsin \left (c x \right ) \ln \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{d}+\frac {b \arcsin \left (c x \right ) \ln \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{d}+\frac {b \ln \left (i c x +\sqrt {-c^{2} x^{2}+1}-1\right )}{d}-\frac {b \ln \left (1+i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}+\frac {i b \dilog \left (1+i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{d}-\frac {i b \dilog \left (1-i \left (i c x +\sqrt {-c^{2} x^{2}+1}\right )\right )}{d}\right )\) | \(236\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {\int \frac {a}{c^{2} x^{4} - x^{2}}\, dx + \int \frac {b \operatorname {asin}{\left (c x \right )}}{c^{2} x^{4} - x^{2}}\, dx}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {a+b\,\mathrm {asin}\left (c\,x\right )}{x^2\,\left (d-c^2\,d\,x^2\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________